<html>
	<head>
		<title>Game Index</title>
		<script type="text/javascript">  
            if (!window.WebSocket) {  
                alert("WebSocket not supported by this browser!");  
            }  

            function getReady() {  
                var valueLabel = document.getElementById("valueLabel");  
                valueLabel.innerHTML = "";  
                var ws = new WebSocket("ws://127.0.0.1:8087/Game");  
                ws.onmessage = function(evt) {  
                    valueLabel.innerHTML = evt.data;  
                };  

                ws.onclose = function() {  
                };

                ws.onopen = function() {  
                    ws.send("Hello, Server!");
                };  
            }  
        </script>  
    </head>  
    <body onload="getReady();">          <div id="valueLabel"></div>  
    </body>
</html>